//
// Created by user on 20-4-5.
//

#ifndef _SYSTEMSERVICE_H_
#define _SYSTEMSERVICE_H_

#include "../ProcessManagement/Ptrace.h"
#include "../GeneralLibrary/Printf.h"

// 系统调用的最大数量
#define MAX_SYSTEM_CALL_NR 128

typedef unsigned long (* systemCallT)(PerformSite * regs);

extern systemCallT systemCallTable[MAX_SYSTEM_CALL_NR];

/**
 * 暂时用来代替所有的系统调用
 * @param regs 系统调用保存原先的
 * @return
 */
long noSystemCall(PerformSite *regs);

unsigned long sysPrintf(PerformSite *regs);

#endif //_SYSTEMSERVICE_H_
